package me.helllp.dake.sample1;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RefreshScope
public class ProviderController {
    @Value("${dake.name:'林晓明的测试'}")
    private String name;

    @PostMapping("/testProvider")
    public String test(){
        return name;
    }


}
